package fun.qu_an.minecraft.fabric.fzbbl.handle;

import fun.qu_an.minecraft.fabric.fzbbl.FZBBL;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;

import java.util.Map;

public class EndServerTickHandle {
	public static void handle(MinecraftServer ignoredServer) {
		// 清除活塞缓存
		for (Map<BlockPos, PlayerEntity> v : FZBBL.PISTON_CACHE.values()) {
			if (v.isEmpty()) continue;
			v.clear();
		}
	}
}
